package com.meiyu.live.net;


import com.meiyu.live.BaseApplication;
import com.meiyu.live.comm.Constant;
import com.meiyu.live.net.param.BaseBodyParams;
import com.meiyu.live.util.Base64;
import com.meiyu.live.util.DesUtil;

public class ReqPackage {

//    private BaseParams base;

    private String hash;

    public ReqPackage(BaseBodyParams body) {
        try {
            this.hash = Base64.getBase64((DesUtil.encode(BaseApplication.mGson.toJson(body), Constant.DECKEY)));
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

    public String packetParam() {
        return BaseApplication.mGson.toJson(this);
    }



}
